package com.senven.books.modules.booksManager.entity.vo;

import com.senven.books.modules.booksManager.entity.Book;
import com.senven.books.mybatis.baseEntity.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@Data
@NoArgsConstructor
@ApiModel(description = "图书Vo")
public class BookVo  extends BaseForm<Book> {

    public BookVo(Book book) {
        BeanUtils.copyProperties(book, this);
    }

    @ApiModelProperty(value = "书名")
    private Long id;

    @ApiModelProperty(value = "书名")
    private String title;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "类别")
    private String category;

    @ApiModelProperty(value = "上架日期")
    private String publishedDate;

    @ApiModelProperty(value = "出版社")
    private String press;

    @ApiModelProperty(value = "价格")
    private String price;


}
